package com.net.shop.car.manager.api.volley.request.dingdan;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.LogUtils;

public class GetDingdanOrderList extends Request {
	/**
	 * 
	 */
	private int orderType;
	/**
	 * 
	 */
	private String memberID;
	private int page;
	
	public GetDingdanOrderList(String memberId,int orderType,int page) {
		super(Constants.DINGDAN_ORDER_LIST);
		this.memberID = memberId;
		this.orderType = orderType;
		this.page = page;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("memberid", memberID);
			jsonObject.put("ordertype", orderType);
			jsonObject.put("page", page);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
